package service;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import collector.Collector;
import collector.UsbCollector;
@Service
public class FactorAnalyser implements Analyser{
	//@Autowired
	//@Qualifier(value="nc")
	@Resource(name="usbCollector")
	private Collector collector;
	public FactorAnalyser() {
		
	}
	public void setCollector(Collector collector) {
		this.collector = collector;
	}
	public void analize() {
		
		collector.collect();
		System.out.println("factor analizing....");
	}
}
